<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    p {
      width: 600px;
      height: 300px;
      border: 40px solid rgba(1, 1, 1, 0.3);
      padding: 40px;
      background-color: bisque;
      background-image: url(./1.jpg);
      background-repeat: no-repeat;
      /* background-size: 200px auto; */
      /* background-size: 50% auto; */
      /* 宽度100% */
      /* background-size: cover; */
      /* background-size: 100% auto; */
      /* 高度100% */
      background-size: contain;




    }
  </style>
</head>

<body>
  <p>this is tag p </p>
</body>

</html>